.class Lcom/xingbook/park/activity/bw;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/xingbook/park/activity/SearchAct;


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/SearchAct;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/activity/bw;->a:Lcom/xingbook/park/activity/SearchAct;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    const/4 v3, 0x4

    const/4 v2, 0x3

    const/4 v1, 0x2

    const/4 v0, 0x0

    invoke-static {}, Lcom/xingbook/c/n;->o()Z

    move-result v4

    if-eqz v4, :cond_3

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v4, p0, Lcom/xingbook/park/activity/bw;->a:Lcom/xingbook/park/activity/SearchAct;

    invoke-static {v4}, Lcom/xingbook/park/activity/SearchAct;->d(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/b/d;

    move-result-object v4

    invoke-virtual {v4, v0}, Lcom/xingbook/park/b/d;->b(Ljava/lang/String;)V

    iget-object v4, p0, Lcom/xingbook/park/activity/bw;->a:Lcom/xingbook/park/activity/SearchAct;

    invoke-static {v4}, Lcom/xingbook/park/activity/SearchAct;->d(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/b/d;

    move-result-object v4

    invoke-virtual {v4}, Lcom/xingbook/park/b/d;->h()V

    iget-object v4, p0, Lcom/xingbook/park/activity/bw;->a:Lcom/xingbook/park/activity/SearchAct;

    invoke-static {v4}, Lcom/xingbook/park/activity/SearchAct;->o(Lcom/xingbook/park/activity/SearchAct;)Ljava/util/ArrayList;

    move-result-object v4

    iget-object v5, p0, Lcom/xingbook/park/activity/bw;->a:Lcom/xingbook/park/activity/SearchAct;

    invoke-static {v5}, Lcom/xingbook/park/activity/SearchAct;->d(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/b/d;

    move-result-object v5

    invoke-static {v4, v5, v0}, Lcom/xingbook/park/f/a;->a(Ljava/util/ArrayList;Lcom/xingbook/park/b/d;Ljava/lang/String;)Lcom/xingbook/park/e/c;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/park/e/a;->a(Lcom/xingbook/park/e/c;)I

    move-result v4

    const/4 v5, 0x1

    if-ne v4, v5, :cond_1

    :cond_0
    :goto_0
    iget-object v2, p0, Lcom/xingbook/park/activity/bw;->a:Lcom/xingbook/park/activity/SearchAct;

    invoke-static {v2}, Lcom/xingbook/park/activity/SearchAct;->r(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/activity/by;

    move-result-object v2

    invoke-virtual {v2, v1, v0}, Lcom/xingbook/park/activity/by;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    return-void

    :cond_1
    if-eq v4, v2, :cond_0

    if-ne v4, v1, :cond_2

    move v1, v2

    goto :goto_0

    :cond_2
    if-nez v4, :cond_4

    move v1, v3

    goto :goto_0

    :cond_3
    const/4 v1, 0x5

    goto :goto_0

    :cond_4
    move v1, v3

    goto :goto_0
.end method
